<template>
  <div class="container">
    <div>用户名: {{ userInfo.loginName }}</div>
    <div>昵称: {{ userInfo.nickname }}</div>
    <div>个人介绍: {{ userInfo.description }}</div>
    <nuxt-link to='/list'>我的文章</nuxt-link>
  </div>
</template>

<script>
export default {
  middleware: 'login',
  computed: {
    userInfo() {
      return this.$store.state.userInfo
    }
  }
}
</script>

<style>

</style>

